﻿
using System;
using System.ComponentModel.DataAnnotations;
using SharpArch.Domain.DomainModel;

namespace DevelopmentKit.Cms.Domain
{
    /// <summary>
    /// 内容详情
    /// </summary>
    public   class ContentDetail : Entity
    {
         

        [Display(Name = "属性名")]
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(128, ErrorMessage = "{0}取值长度{1}~{2}个字符", MinimumLength = 0)]
        public virtual string Name { get; set; }


        [Display(Name = "属性值")] 
        [StringLength(10000, ErrorMessage = "{0}取值长度{1}~{2}个字符", MinimumLength = 0)]
        public virtual string Value { get; set; }

        
        /// <summary>
        /// 所属内容
        /// </summary>
        [Display(Name = "所属内容")]
        [Required(ErrorMessage = "{0}不能为空")] 
        public virtual Content Content { get; set; }

         
    }
}